package com.wgt.startx.bean;

import java.util.Map;

/**
 * Created by wgt on 2017/7/30.
 */
public class View {

    private String path;
    private Map<String,Object> model;

    public View(String path, Map<String, Object> model) {
        this.path = path;
        this.model = model;
    }

    public View addModel(String k,Object m ){
        model.put(k,m);
        return this;
    }

    public String getPath() {
        return path;
    }

    public Map<String, Object> getModel() {
        return model;
    }
}
